package remoteService;

import concole.CommandHelper;
import concole.Course;
import concole.Teacher;

public class Test {
	public static void main(String args[]) {
		ServerHelper sHelper = new ServerHelper();
		sHelper.startServer();

		/*Teacher teacher = new Teacher();
		Course oldCourse = new Course(
				"0229 JSPE QinLiu&TongWeiRen 001&003 true 10 2 1 15 default default ZhouJi");
		Course newCourse = new Course(
				"0783 USP default&LiuQin 001&002 true 12 2 1 14 unknown default 001");*/
		// teacher.processNetUpdateTList(oldCourse, newCourse, true, true);
		// String aString =
		// "TeacherOp!1!0229 JSPE QinLiu&TongWeiRen 001&003 true 10 2 1 15 default default ZhouJi!0783 USP default&LiuQin 001&002 true 12 2 1 14 unknown default ZhouJi!T!T";
		//String aString = "002&003";
		// teacher.processNetGetTNameFromFile(aString);
		// teacher.processNetPublish(oldCourse);
		// teacher.processNetCheckCNum("0011");
		// teacher.processNetUpdateCList(oldCourse, newCourse);
	/*	String opcodeString = CommandHelper
				.getOpcode("TeacherOp!5!0229 JSPE QinLiu&TongWeiRen 001&003 true 10 2 1 15 default default ZhouJi!0783 USP default&LiuQin 001&002 true 12 2 1 14 unknown default ZhouJi");
		String[] opcodeStrings = opcodeString.split("!");
		System.out.println(opcodeString);
		for (int i = 0; i < opcodeStrings.length; i++) {
			System.out.println(i + " " + opcodeStrings[i]);
		}*/

		/*
		 * String string="ninin@ nini@nini\tdfs\tdsf";
		 * System.out.println(string); String
		 * aString=string.split("@")[0]+string
		 * .split("@")[1]+string.split("@")[2]; String
		 * bString=string.split("\t")
		 * [0]+string.split("\t")[1]+string.split("\t")[2];
		 * System.out.println(aString); System.out.println(bString);
		 */
	}
}
